<template>
	<view>
        <view class="title">{{ title }}</view>
        <view v-html="content"></view>
	</view>
</template>

<script>
	import Api from '@/common/api.js'
	export default {
		name: 'richtxtDetail',
		onLoad(option) {
			this.id = JSON.parse(option.param).id;
			this.getRichtxtData();
		},
		data() {
			return {
				id: '',
				title: '',
				content: ''
			}
		},
		methods: {
			async getRichtxtData() {
				var params = {
				    'id': this.id
				};
				var data = await Api.APPCall('get', Api.index.noticeDetail, params);
				this.title = data.title;
				this.content = data.context;
			}
		}
	}
</script>

<style lang="less">
    page {
        padding: 30rpx;
        color: #191919;
        font-size: 30rpx;
        text-align: justify;
        .title {
            font-size: 36rpx;
            font-weight:500;
            color:rgba(25,25,25,1);
            line-height: 60rpx;
            margin-bottom: 30rpx;
        }
        img {
            max-width: 100%;
            height: auto;
        }
    }
</style>
